package cn.signalpha.modules.social.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类
 *
 * @author signalpha
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("social_comment")
@ApiModel(value = "Comment对象", description = "活动消息")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
  	private Long id;

    @ApiModelProperty(value = "实体id")
    private Long targetId;

	@ApiModelProperty(value = "实体类型：1主题 2评论")
	private Integer targetType;

	@ApiModelProperty(value = "实体标题")
	private String targetTitle;

    @ApiModelProperty(value = "父级id")
    private Long parentId;

    @ApiModelProperty(value = "评论用户id")
    private Long fromUserId;

    @ApiModelProperty(value = "评论目标用户id")
    private Long toUserId;

    @ApiModelProperty(value = "评论内容")
    private String content;

	@ApiModelProperty(value = "扩展参数")
	private String extend;

	@ApiModelProperty(value = "城市")
	private String city;

    @ApiModelProperty(value = "是否置顶：0否 1是")
    private Integer isTop;

	@ApiModelProperty(value = "是否显示：0否 1是")
	private Integer isShow;

    @ApiModelProperty(value = "状态：-1不通过 0待审核 1已审核")
    private Integer status;

	@ApiModelProperty(value = "点赞量")
	private Integer likeNum;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
